var TotaValidator = {
	
	Class : function(element){		
		Validator.apply( this, arguments )	
		
		this.setup.messages.required = "Preencha o campo {title}"					
		
		this.bind('error', function(errorList){		
			$('label.error').remove()
			$(errorList).each(function(i){
				var el = $(errorList[i].element)													
					el.parent().append('<label class="error">'+ errorList[i].message[0] +'</label>')										
			})			
				
			return false			
		})					
	}
}

var Form = new TotaValidator.Class('#enviar')

	Form.validate({
		'#nome, #sobrenome' : {
			rules : { required : true }
		}
				
	})
